package plantshop.model;
import java.awt.image.BufferedImage;
import java.util.HashMap;
import java.util.Map;

import javax.swing.JFrame;

import plantshop.view.View;


public class TutorialPlayer extends Player{
	private static final long serialVersionUID = 8686392343749608099L;
	Game game;
	View view;
	
	public TutorialPlayer(Game game){
		this.game = game;
		view = new View(game, this, new HashMap<String, BufferedImage>(), new JFrame(), true, new HashMap<String, BufferedImage[]>(), false);
	}
	
	public TutorialPlayer(Map<String, BufferedImage> images, JFrame frame, String name, boolean gender, Map<String, BufferedImage[]> animations){
		this.name = name;
		this.gender = gender;
		game = new Game(frameWidth/1600.0,frameHeight/900.0);
		view = new View(game, this, images, frame, true, animations, false);
		frame.getContentPane().add(view);
		frame.validate();
		frame.repaint();
		sendCustomer();
		view.repaint();
	}
	public void sendCustomer(){
		Customer c = Customer.makeCustomer(0, new Characteristics(5,5,10,5,5));
		game.sendCustomer(c);
		view.repaint();
	}
}